/* ── RESET & BASE ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --purple:    #7B2FFF;
  --pink:      #FF2FD0;
  --grad:      linear-gradient(135deg, #7B2FFF 0%, #D42FFF 50%, #FF2FD0 100%);
  --grad-soft: linear-gradient(160deg, #f5eeff 0%, #fce8ff 100%);
  --text-dark: #1a0033;
  --text-mid:  #4a2070;
  --text-muted:#8860b0;
  --white:     #ffffff;
  --card-bg:   #ffffff;
  --card-border: rgba(123,47,255,.12);
  --radius:    20px;
  --shadow:    0 8px 32px rgba(123,47,255,.13);
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--grad-soft);
  color: var(--text-dark);
  line-height: 1.6;
}

.container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── HERO ─────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--grad);
  padding: 72px 24px 88px;
  text-align: center;
  color: var(--white);
}

.hero-glow {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.18) 0%, transparent 70%);
  top: -180px; left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; }

.hero-logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  margin-bottom: 20px;
  box-shadow: 0 4px 24px rgba(0,0,0,.25);
  object-fit: contain;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  text-shadow: 0 2px 12px rgba(0,0,0,.18);
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  opacity: .9;
  max-width: 520px;
  margin: 0 auto 36px;
}

/* ── BUTTON ───────────────────────────────────── */
.btn-primary {
  display: inline-block;
  padding: 16px 48px;
  background: var(--white);
  color: var(--purple);
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 6px 28px rgba(0,0,0,.18);
  transition: transform .2s, box-shadow .2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(0,0,0,.22);
}

/* ── FEATURES ─────────────────────────────────── */
.features {
  padding: 80px 0 60px;
}

.section-title {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 48px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(123,47,255,.18);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.card p {
  font-size: .95rem;
  color: var(--text-mid);
  line-height: 1.65;
}

/* ── CTA SECTION ──────────────────────────────── */
.cta-section {
  background: var(--grad);
  padding: 72px 24px;
  text-align: center;
  color: var(--white);
}

.cta-inner h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 14px;
}

.cta-inner p {
  opacity: .88;
  font-size: 1rem;
  margin-bottom: 32px;
}

/* ── FOOTER ───────────────────────────────────── */
.footer {
  background: #110022;
  padding: 24px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-brand {
  color: rgba(255,255,255,.5);
  font-size: .9rem;
}

.privacy-link {
  background: none;
  border: none;
  color: rgba(255,255,255,.55);
  font-size: .9rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s;
  padding: 0;
}

.privacy-link:hover { color: var(--white); }

/* ── MODAL ────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(17,0,34,.55);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open { display: flex; }

.modal {
  background: var(--white);
  border-radius: 24px;
  max-width: 560px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 40px 36px 36px;
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,.3);
  animation: slideUp .3s ease;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

.modal-close {
  position: sticky;
  top: 0;
  float: right;
  background: rgba(123,47,255,.1);
  border: none;
  color: var(--purple);
  font-size: 1.1rem;
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
  z-index: 10;
  margin-bottom: 8px;
  margin-left: auto;
}

.modal-close:hover { background: rgba(123,47,255,.2); }

.modal-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 20px;
  clear: both;
}

.modal-body p {
  font-size: .95rem;
  color: var(--text-mid);
  margin-bottom: 16px;
  line-height: 1.7;
}

.modal-body strong {
  color: var(--text-dark);
}

/* ── RESPONSIVE ───────────────────────────────── */
@media (max-width: 600px) {
  .hero { padding: 56px 20px 72px; }
  .features { padding: 56px 0 40px; }
  .modal { padding: 28px 20px 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
